package com.ssy.lingxi.order.api.model.vo.response;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * “售后服务” - 查询订单商品Sku使用“平台优惠券”后的优惠抵扣总金额
 * @author 万宁
 * @version 2.0.0
 * @date 2022-02-09
 */
public class OrderProductCouponFeignVO implements Serializable {
    private static final long serialVersionUID = 7581202749909111697L;

    public OrderProductCouponFeignVO() {
    }

    public OrderProductCouponFeignVO(Long orderProductId, Long skuId, Long platformCouponId, BigDecimal platformCouponAmount) {
        this.orderProductId = orderProductId;
        this.skuId = skuId;
        this.platformCouponId = Objects.isNull(platformCouponId) ? 0L : platformCouponId;
        this.platformCouponAmount = Objects.isNull(platformCouponAmount) ? BigDecimal.ZERO : platformCouponAmount;
    }

    /**
     * 订单服务生成的订单商品Id
     */
    private Long orderProductId;

    /**
     * 订单商品SkuId
     */
    private Long skuId;

    /**
     * 平台优惠券Id，如没有使用“平台优惠券”则为0
     */
    private Long platformCouponId;

    /**
     * 使用“平台优惠券”后的优惠抵扣金额，如没有使用“平台优惠券”则为0
     */
    private BigDecimal platformCouponAmount;

    public Long getOrderProductId() {
        return orderProductId;
    }

    public void setOrderProductId(Long orderProductId) {
        this.orderProductId = orderProductId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Long getPlatformCouponId() {
        return platformCouponId;
    }

    public void setPlatformCouponId(Long platformCouponId) {
        this.platformCouponId = platformCouponId;
    }

    public BigDecimal getPlatformCouponAmount() {
        return platformCouponAmount;
    }

    public void setPlatformCouponAmount(BigDecimal platformCouponAmount) {
        this.platformCouponAmount = platformCouponAmount;
    }
}
